import java.time.LocalDateTime;
import java.time.LocalTime;
import java.time.ZoneOffset;

/**
 * @Author lizhenchao@atguigu.cn
 * @Date 2021/3/9 10:15
 */
public class TimeDemo {
    public static void main(String[] args) {
        final Long now = System.currentTimeMillis() / 1000;
        final LocalDateTime today = LocalDateTime.ofEpochSecond(now, 0, ZoneOffset.ofHours(8));
    
        final LocalDateTime tomorrow = LocalDateTime.of(today.toLocalDate().plusDays(1), LocalTime.of(0, 0, 1));
    
        final long time = tomorrow.toEpochSecond(ZoneOffset.ofHours(8));
        System.out.println(tomorrow);
        System.out.println(time);
    
    }
}
